This section summarizes the features of an <#3350#><TT>xlib:resource-database</TT><#3350#>.
See [#xlib#<tex2html_cite_mark>#1##<tex2html_cite_mark>#] and [#clx#<tex2html_cite_mark>#1##<tex2html_cite_mark>#] for a complete description of CLX resource
management.
<P>
Conceptually, a resource database is a set of resource name-value pairs (or
<#3353#><B>resource bindings</B><#3353#><A ID="3354"><tex2html_anchor_invisible_mark></A>). Some examples of resource
bindings are shown below. In these examples, we assume that <#3355#><TT>mail</TT><#3355#> is the
resource name of a mail reading application; <#3356#><TT>mail</TT><#3356#> uses a contact of the
class <#3357#><TT>button</TT><#3357#> whose name is <#3358#><TT>reply</TT><#3358#>.
These resource bindings specify that the background color resource of
<#3366#><TT>mail</TT><#3366#>'s <#3367#><TT>reply</TT><#3367#> button has the value <#3368#><TT>green</TT><#3368#> on <#3369#><TT>screen-1</TT><#3369#>, that
the background color for the rest of the <#3370#><TT>mail</TT><#3370#> application is always <#3371#><TT>red</TT><#3371#> on all screens, and that, in general, the background color for all <#3372#><TT>button</TT><#3372#>
contacts is <#3373#><TT>blue</TT><#3373#>. Thus, the name in a resource binding is a list
of symbols (or strings) which are hierarchically related in a way that
corresponds to
a path down a parent-child tree of contacts. The name can be a partial
(or incomplete) path, can use ``wildcarding'' for partial paths, and can include both
resource names and contact class symbols at any position.
<P>
A user can establish
resource bindings in a resource database by using the <#3374#><TT>define-resources</TT><#3374#>
macro or the <#3375#><TT>xlib:add-resource</TT><#3375#> function.
The <#3376#><TT>describe-resource</TT><#3376#> function may be used to print the values in a
resource database associated with a given name.
It can also be useful to process the set of resource bindings in a resource
database (for example, to save them to a file). The
<#3377#><TT>xlib:map-resource</TT><#3377#> function is designed for this purpose.